home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 667 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: A.Main@dcs.warwick.ac.uk (Zefram)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: #endif //
  5. Date: 08 Mar 1996 09:07:52 PST
  6. Organization: Department of Computer Science, Warwick University, England
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <10625.199603080914@diamond.dcs.warwick.ac.uk>
  9. References: <r4lolec6xs.fsf@erawan.cognex.com>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Fri, 8 Mar 1996 09:14:43 GMT
  12. X-Stardate: [-31]7166.90
  13. X-Us-Congress: Moronic fuckers
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBVAwUBMUBpdky4NqrwXLNJAQFgnQH/ZiBon5zHgIah9kiiv5/gSZhvcFXz82vO
  16.     0a7nWh25OlZzV8X6yCXhd7P9QMZ8ya5859oQnriZgSyuIDmVXX0CqQ==
  17.     =ncTY
  18. Originator: austern@isolde.mti.sgi.com
  19.  
  20. Michael Cook  <mcook@cognex.com> wrote:
  21. >Is it legal to have //-style comments within a preprocessor directive?  If so,
  22. >that'd mean C++ compilers would be precluded from using ISO C preprocessors.
  23.  
  24. That is correct.  Comments are converted into spaces before
  25. preprocessing occurs.  In practice, it is common for a single
  26. preprocessor program to have two modes of operation, one in which //
  27. starts a comment and one in which it does not.  That preprocessor can
  28. then be used for both languages.  (Actually other options are needed
  29. too, controlling which digraphs are recognised.)
  30.  
  31. -zefram
  32. ---
  33. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  34.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  35.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  36.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  37.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  38. ]
  39.